home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / libport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-16  |  1.6 KB  |  58 lines

  1. /* @(#)libport.h    1.3 99/10/16 Copyright 1995 J. Schilling */
  2. /*
  3.  *    Copyright (c) 1995 J. Schilling
  4.  */
  5. /*
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2, or (at your option)
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; see the file COPYING.  If not, write to
  18.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21.  
  22. #ifndef _LIBPORT_H
  23. #define _LIBPORT_H
  24.  
  25. #ifndef    _MCONFIG_H
  26. #include <mconfig.h>
  27. #endif
  28. #ifndef    _PROTOTYP_H
  29. #include <prototyp.h>
  30. #endif
  31.  
  32. #ifdef    OPENSERVER
  33. /*
  34.  * Don't use the usleep() from libc on SCO's OPENSERVER.
  35.  * It will kill our processes with SIGALRM.
  36.  */
  37. /*
  38.  * Don't #undef HAVE_USLEEP in this file, SCO has a
  39.  * usleep() prototype in unistd.h
  40.  */
  41. /*#undef    HAVE_USLEEP*/
  42. #endif
  43.  
  44. #ifndef    HAVE_GETHOSTID
  45. extern    long        gethostid    __PR((void));
  46. #endif
  47. #ifndef    HAVE_GETHOSTNAME
  48. extern    int        gethostname    __PR((char *name, int namelen));
  49. #endif
  50. #ifndef    HAVE_GETDOMAINNAME
  51. extern    int        getdomainname    __PR((char *name, int namelen));
  52. #endif
  53. #ifndef    HAVE_USLEEP
  54. extern    int        usleep        __PR((int usec));
  55. #endif
  56.  
  57. #endif    /* _LIBPORT_H */
  58.